package com.qcby.demo.proxyaop.proxy.cglib;


import lombok.extern.slf4j.Slf4j;
import org.springframework.cglib.proxy.MethodInterceptor;
import org.springframework.cglib.proxy.MethodProxy;

import java.lang.reflect.Method;

/**
 * @className: TvCblib
 * @description:
 * @author: lxt
 * @create: 2021-05-12 15:46
 **/
@Slf4j
public class TvCblibInterceptor implements MethodInterceptor {

    @Override
    public Object intercept(Object o, Method method
            , Object[] objects, MethodProxy methodProxy) throws Throwable {
        log.info("贾玲的代理正在与您沟通3333【拍电视剧】...");
        Object result = methodProxy.invokeSuper(o,objects);
        log.info("贾玲的代理正在完成收尾4444【拍电视剧】...");
        return null;
    }
}
